﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICeFramework.Common.DataLayer;
using System.Data;
using System.Runtime.Serialization;

namespace ICeFramework.Common.DataLayer.Interfaces
{
    public interface IEntityColumn
    {
        ValidationFlags Validation { get; set; }
        string Name { get; }
        string DisplayName { get; set; }
        DbType DbType { get; }
        Type ColumnType { get; }
        int? Length { get; }
        bool IsInPrimaryKeys { get; }
        bool IsForeignKey { get; }
        int? Precision { get; }
        int? Scale { get; }
        bool AllowNull { get; }
        object DefaultValue { get; }
        bool IsReadOnly { get; }
        EntityFilter Like(object b);
        EntityOrder Asc { get; }
        EntityOrder Desc { get; }
    }
}
